const express = require("express");
const router = express.Router();

router.delete("/:id", async (req, res) => {
  const { id } = req.params;
  await req.db.connection.query("DELETE FROM menus WHERE id=?", [id]);
  res.send({
    success: true,
    message: "菜单删除成功",
  });
});
module.exports = router;
